package com.wdc.list_;

import java.util.Arrays;

@SuppressWarnings({"all"})
public class E02Leetcode88 {
    public static void merge(int[] nums1, int m, int[] nums2, int n) {

        for (int i = m ,j = 0; i < nums1.length; i++,j++) {
            nums1[i] = nums2[j];
        }
        Arrays.sort(nums1);
        System.out.println(Arrays.toString(nums1));


    }

    public static void main(String[] args) {
        int[] nums1 = {1,2,3,0,0,0};
        int[] nums2 = {2,5,6};
        int m = 3;
        int n = 3;

        merge(nums1,m,nums2,n);

    }
}
